body {
    font-family: "Montserrat", "Roboto", sans-serif;
    background: linear-gradient(to right,
            #CDD9BA 0%,
            #CDD9BA 40%,
            #F2F2F0 40%,
            #F2F2F0 100%);
    color: #434b56;
    
}
@media screen and (max-width:1024px){
    body {
        font-family: "Montserrat", "Roboto", sans-serif;
        background: 
        #F2F2F0;
        width: 100%;
        margin: 0;
    }
}
    

/* Header */
header {
    position: fixed;
    top:0;
    width: 100%;
    background-color: #F2F2F0;
    z-index: 5;
    height: 100px;

}

header .content {
    display: flex;
    align-items: center;
    padding: 1.9rem;
}

header .logo {
    flex: 1;
}

.logo img {
    width: 170px;
    margin-top: -10px;

}


header nav ul {
    display: flex;
}

nav li {
    padding-left: 3.5rem;
    font-weight: 300;
}

nav li:hover {
    opacity: 0.5;
    transition: all 0.4s ease;
}

nav a {
    vertical-align: bottom;
    line-height: 1.6;
    font-size: 1rem;
    color: #4a4a4a;
}
header .mobile {
    display: none;
}
.content .menu-button{
    width: 30px;
    display: none;
}

@media screen and (max-width: 940px){ /* Iphone screen size */
  .desktop {
    position: fixed;        /* fixe sur tout l’écran */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;           /* couvre tout l’écran, même sur mobile */
    background-color: rgba(191, 183, 183, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -100%;
    transition: all 0.5s ease;
    z-index: 999;           /* au-dessus de tout */
}
    .desktop.mobile-menu{
        margin-left: 0;
    }
    header .content .desktop ul{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        width: 100%;
        list-style: none;
    }
    header .content .desktop ul li{
        width: 100%;
        text-align: center;
        margin: 15px 0; /* espace régulier entre les liens */
    }
    header .content .desktop ul li a{
        font-size: 1.5rem;
        display: block;
        width: 100%;
        text-align: center;
        color: #4a4a4a;
        text-decoration: none;
    }
    header .content{
        padding: 0;
    }
    header .content .logo h1{
        font-size: 1.2rem;
        padding-top: 1.9rem;
        padding-left: 1.9rem;
    }
    header .content .logo p{
        font-size: 0.7rem;
        padding-left: 1.9rem;
    }
    .content .menu-button{
        top: 0;
        right: 0;
        position: absolute;
        display: flex;
        padding: 1.9rem;
    }
}

@media screen and (min-width: 940px) and (max-width:1040px){ /* Ipad Pro responsive*/
    .desktop{
        position: absolute;
        background-color: rgba(191, 183, 183, 0.369);
        backdrop-filter: blur(15px);
        width: 100%;
        min-height: 100vh;
        display: flex;
        top:0;
        left: 0;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
    }
    .desktop.mobile-menu{
        margin-left: 0;
        
    }
    header .content .desktop ul{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    header .content .desktop ul li{
        margin: 25px 0;
    }
    header .content .desktop ul li a{
        font-size: 2rem;
    }
    header .content{
        padding: 0;
    }
    header .content .logo h1{
        font-size: 1.2rem;
        padding-top: 1.9rem;
        padding-left: 1.9rem;
    }
    header .content .logo p{
        font-size: 0.7rem;
        padding-left: 1.9rem;
    }
    .content .menu-button{
        top: 0;
        right: 0;
        position: absolute;
        display: flex;
        padding: 1.9rem;
    }

}

#second-section img{
    width: 300px;
    height: auto;
    margin: 40px;
    border: solid 1px #CDD9BA;
    border-radius: 10%;
}

#second-section{
    margin-top: 150px;
    width: 90%;
    margin-left: 1%;
    display: flex;
    align-items: center;
    gap: 30px;
}
#second-section h1{
    font-size: 2rem;
    margin-bottom: 25px;
    color: #F28080;
}



@media only screen and (min-width: 940px) and (max-width: 1040px){
    .resume{
        flex-direction: column;
        text-align: start;
    }
    
}

@media screen and (max-width: 940px){
    #second-section img{
    width: 300px;
    height: auto;
    margin: 40px;
    border: solid 1px #F2F2F0;
    border-radius: 10%;
}
    #second-section{
        flex-direction: column;
        text-align: start;
        margin-left: 5%;
        margin-bottom: 5%;
    }
}
html {
    scroll-behavior: smooth;
}
:target::before {
    content: "";
    display: block;
    height: 100px; /* Hauteur de ton header */
    margin-top: -100px;
}
:target {
    scroll-margin-top: 100px; /* adapte à la hauteur de ton header */
}